package com.moive.news.tqnewsapplication.utils;

/**
 * Created by Administrator on 2017/12/13.
 */

public class FalseClickListener {
    public static final int MIN_CLICK_DELAY_TIME = 8000;
    private static long lastClickTime;
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        if (0 < timeD && timeD < MIN_CLICK_DELAY_TIME) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
